import request from "@/utils/request";
export function fetchList(params) {
  return request({
    url: "/dms/campus/list",
    method: "get",
    params: params,
  });
}


export function fetchAllList(params) {
  return request({
    url: "/dms/campus/listAll",
    method: "get",
    params: params,
  });
}

export function createCampus(data) {
  return request({
    url: "/dms/campus/create",
    method: "post",
    data: data,
  });
}

export function deleteCampus(id) {
  return request({
    url: "/dms/campus/delete/" + id,
    method: "get",
  });
}

export function getCampus(id) {
  return request({
    url: "/dms/campus/" + id,
    method: "get",
  });
}

export function updateCampus(id, data) {
  return request({
    url: "/dms/campus/update/" + id,
    method: "post",
    data: data,
  });
}
